package avicit.bdp.dds.common.utils;

import avicit.bdp.dds.common.Constants;
import org.apache.commons.lang3.StringUtils;

/**
 *  sensitive log Util
 */
public class SensitiveLogUtils {

    /**
     * @param dataSourcePwd data source password
     * @return String
     */
    public static String maskDataSourcePwd(String dataSourcePwd){

        if (StringUtils.isNotEmpty(dataSourcePwd)) {
            dataSourcePwd = Constants.PASSWORD_DEFAULT;
        }
        return dataSourcePwd;
    }

}
